package com.xu.cloud.controller;

import com.xu.cloud.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/user")
public class UserController {
    // 示例API，返回用户信息
    @GetMapping("/info")
    public User getUserInfo() {
        // 返回一个假设的用户信息
        return new User(1, "张三", "zhangsan@example.com");
    }
}
